package com.swh.recruit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import com.swh.utils.IdUtil;

/**
 * @author swh
 * @Description
 * @date 2021-01-12 17:57:44
 */
//@SpringBootApplication
@EnableEurekaClient

@EnableDiscoveryClient
@EnableFeignClients

@SpringBootApplication(exclude = MongoAutoConfiguration.class)
public class RecruitApplication {

    public static void main(String[] args) {
        SpringApplication.run(RecruitApplication.class, args);
    }

    @Bean
    public IdUtil idUtil() {
        return new IdUtil();
    }

}
